import java.util.Iterator;

public class ConcreteMediator  extends Mediator  {
    @Override
    public void operation(String message) {
        Iterator<Colleague> iteratorOfColleagues= colleagues.iterator();
        Colleague colleague;
        while (iteratorOfColleagues.hasNext()){   //转换到下一个同事类
            colleague = iteratorOfColleagues.next();
            colleague.stringProcess(message);
        }

    }
}
